/*
 * @(#) ArticleAndTag.java 2018年3月16日 上午9:52:01
 *
 * Copyright 2018 CIMIP, Inc. All rights reserved.
 * H-VISIONS PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */package cn.hc.share.entity;

import java.io.Serializable;
import java.sql.Timestamp;

public class ArticleAndTag  implements Serializable
{

	private static final long serialVersionUID = -2700113692388446196L;

	private String id;
	private String articleId;
	private String userId;
	private String tagId;
	private String tagName;
	private Timestamp createTime;
	private Timestamp articleCreateTime;
	
	public String getId()
	{
		return id;
	}
	public void setId(String id)
	{
		this.id = id;
	}
	public String getArticleId()
	{
		return articleId;
	}
	public void setArticleId(String articleId)
	{
		this.articleId = articleId;
	}
	public String getUserId()
	{
		return userId;
	}
	public void setUserId(String userId)
	{
		this.userId = userId;
	}
	public String getTagId()
	{
		return tagId;
	}
	public void setTagId(String tagId)
	{
		this.tagId = tagId;
	}
	public String getTagName()
	{
		return tagName;
	}
	public void setTagName(String tagName)
	{
		this.tagName = tagName;
	}
	
	
	@Override
	public int hashCode()
	{
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj)
	{
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ArticleAndTag other = (ArticleAndTag) obj;
		if (id == null)
		{
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	public Timestamp getCreateTime()
	{
		return createTime;
	}
	public void setCreateTime(Timestamp createTime)
	{
		this.createTime = createTime;
	}
	@Override
	public String toString()
	{
		return "ArticleAndTag [id=" + id + ", articleId=" + articleId + ", userId=" + userId + ", tagId=" + tagId
				+ ", tagName=" + tagName + ", createTime=" + createTime + "]";
	}
	public Timestamp getArticleCreateTime()
	{
		return articleCreateTime;
	}
	public void setArticleCreateTime(Timestamp articleCreateTime)
	{
		this.articleCreateTime = articleCreateTime;
	}
	
}
